package com.lanou.service;/*
 * @author 马继耿~
 * @date 2023/10/25 21:01
 * @version 1.0
 * */

import com.alibaba.fastjson.JSON;
import com.github.pagehelper.PageInfo;
import com.lanou.mapper.MJG_lishiMapper;
import com.lanou.pojo.PaymentTempEntity;
import com.lanou.utils.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MJG_lishiServiceImpl implements MJG_lishiService{
    @Autowired
    private MJG_lishiMapper mjg_lishiMapper;
    @Override
    public JsonResult lishi(String resourceName) {
        List<PaymentTempEntity> lishi = mjg_lishiMapper.lishi(resourceName);
        PageInfo<PaymentTempEntity> paymentTempEntityPageInfo = new PageInfo<>(lishi);
        JsonResult jsonResult = new JsonResult();
        jsonResult.setData(paymentTempEntityPageInfo);
        jsonResult.setStatus(200);
        return jsonResult;
    }
}
